package com.zy.openchat.core.model.circle;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class BlogUnreadsInfo implements Parcelable {

    public List<BlogUnreadInfo> messages;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(this.messages);
    }

    public void readFromParcel(Parcel source) {
        this.messages = source.createTypedArrayList(BlogUnreadInfo.CREATOR);
    }

    public BlogUnreadsInfo() {
    }

    protected BlogUnreadsInfo(Parcel in) {
        this.messages = in.createTypedArrayList(BlogUnreadInfo.CREATOR);
    }

    public static final Creator<BlogUnreadsInfo> CREATOR = new Creator<BlogUnreadsInfo>() {
        @Override
        public BlogUnreadsInfo createFromParcel(Parcel source) {
            return new BlogUnreadsInfo(source);
        }

        @Override
        public BlogUnreadsInfo[] newArray(int size) {
            return new BlogUnreadsInfo[size];
        }
    };
}
